package com.lijian.community.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.util.Date;

@Data
public class Comment {

    //把id设置为数据库自增，关闭mybatis-plus的自动生成id，如果数据库字段太长，接收不到会报错
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;

    /**
     * 评论内容
     */
    private String content;

    /**
     * 评论回复类型   1回复问题  2回复评论
     */
    private Integer type;

    /**
     * 问题的id
     */
    private Integer questionId;

    private Integer userId;

    private Integer likeCont;

    private Date createTime;

    private Date updateTime;

    private Integer commentCount;
}
